package org.ami.onlineschool.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Semester {
	private List<Assignment> assignments = new ArrayList<Assignment>();

	public void sortAssignments() {
		Collections.sort(assignments);
	}
	
	public List<Assignment> getAssignments() {
		return assignments;
	}

	public void setAssignments(List<Assignment> assignments) {
		this.assignments = assignments;
	}

	@Override
	public String toString() {
		return "Semester [assignments=" + assignments.size() + "]";
	}
	
	
}
